//
//  LoginBacgroundPlayer.h
//  MELive
//
//  Created by 曹曹 on 2016/10/19.
//  Copyright © 2016年 曹曹. All rights reserved.
//

#import <AVFoundation/AVFoundation.h>

@interface LoginBacgroundPlayer : AVPlayer

@property (nonatomic, strong, readonly) AVPlayerLayer *playerLayer;

@property (nonatomic, strong) NSURL *url;

/** 是否重复播放视频 */
@property (nonatomic, assign) BOOL repeat;

/** 播放本地视频 */
- (instancetype)initWithUrlForResource:(NSString *)resource
                                  type:(NSString *)type
                                 frame:(CGRect)frame;

@end
